package points 
{
	import constants.utils;
	import flash.display.Sprite;
	
	/**
	 * ...
	 * @author parasitic
	 */
	public class BasePoint extends Sprite 
	{
		
		protected var radius:Number;
		protected var index:int = utils.getNewIndex();
		
		override public function toString():String
		{
			return new String(utils.getClass(this) + "#" + index);
		}
		
		public function get_x():Number
		{
			return x;
		}
		
		public function get_y():Number
		{
			return y;
		}
		
		public function set_x(dx:Number):void
		{
			x = dx;
		}
		
		public function set_y(dy:Number):void
		{
			y = dy;
		}
		
		protected function setRadius(r:Number):void
		{
			radius = r;
		}
		
		public function getRadius():Number
		{
			return radius;
		}
	}

}